﻿using Domain.Entity.System_operation;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.System_operation
{
    public class Signature_receiptConfiger : IEntityTypeConfiguration<Signature_receipt>
    {
        public void Configure(EntityTypeBuilder<Signature_receipt> builder)
        {
            builder.ToTable(nameof(Signature_receipt));
            builder.HasKey(e => e.Sign_id);
            builder.Property(e => e.Sign_id).HasColumnType("bigint");
            builder.Property(e => e.Ord_id).HasColumnType("int");
            builder.Property(e => e.Sign_by).HasColumnType("varchar(64)");
            builder.Property(e => e.Sign_time).HasColumnType("DateTime");
            builder.Property(e => e.Sign_num).HasColumnType("int");
            builder.Property(e => e.Sign_type).HasColumnType("varchar(64)");
            builder.Property(e => e.Sign_phone).HasColumnType("varchar(11)");
            builder.Property(e => e.Sign_identy).HasColumnType("varchar(18)");
            builder.Property(e => e.Sign_remark).HasColumnType("varchar(200)");
            builder.Property(e => e.Sign_rec).HasColumnType("varchar(200)");
        }
    }
}
